package com.itheima.mapper;

import com.itheima.pojo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
@Mapper
public interface UserStudentAssignmentMapper {
    //根据时间查询和类型查询数据和学生id
    List<UserStudentAssignment> findByTimeAndTypeAndUid(@Param("type") Integer type , @Param("time") Date time, @Param("userId") Integer userId);
    //添加作业
    int insert(Assignment assignment);

    List<Statistics> findNotWork(StatisticsDto statisticsDto);
}
